package com.thiny.android.game.thunderbolt.util;

public class Constants {

	// 日志tag
	public static final String LOG_TAG = "tag";
	// SharedPreferences 名字
	public static final String SP_NAME = "thunderbolt_sp";
	// SharedPreferences key
	public static final String KEY_MUSIC_SETTING = "music_setting";

	/**
	 * 角色移动速度
	 * 
	 */
	public static final int ENEMY_SPEED_OFFSET = 1;
	public static final int ENEMY_SPEED = 4;
	public static final int BOSS_SPEED = 3;
	public static final int ENEMY_BULLET_SPEED = 6;
	public static final int ENEMY_BULLET_SPEED_FAST = 8;
	public static final int PLAYER_BULLET_SPEED = 7;
	public static final int PLAYER_BULLET_SPEED_MAX = 10;
	// 敌机突然加速袭击的速度
	public static final int ENEMY_SPEED_FAST = 10;
	// 宝物下降速度
	public static final int PROPERTY_SPEED = 3;

	/**
	 * 各个角色相关的生命值
	 */
	public static final int LIFE_PLAYER = 3;
	public static final int LIFE_PLAYER_MAX = 6;
	public static final int LIFE_ENEMY = 1;
	public static final int LIFE_BOSS1 = 150;
	public static final int LIFE_BOSS2 = 200;
	public static final int LIFE_BOSS3 = 250;

	/**
	 * 各种角色类型 包括飞机、子弹、道具
	 * 
	 * 我方战机类型 
	 * 0：射击一行 
	 * 1：射击两行 
	 * 2：射击三行
	 * 
	 * 
	 * 子弹类型
	 * 
	 * 3： 我方战机子弹：伤害为1，小弹 
	 * 4： 我方战机子弹：伤害为2，大弹
	 * 
	 * 5： 敌机竖直型慢速子弹 
	 * 6： 敌机竖直型快速子弹 boss专用 
	 * 7： 敌机跟踪型子弹 向着玩家射击
	 * 
	 * 敌机类型
	 * 
	 * 8： 普通移动型：垂直向下运动 
	 * 9： 普通移动型：垂直向下运动，水平方向上向着我方战机移动 
	 * 10：子弹跟踪型：直接子弹射向玩家
	 * 11：突然加速型：先运动一段时间，突然停止射击、加速撞向玩家；
	 * 
	 * 12：第一关boss 3发子弹 
	 * 13：第二关boss 4发子弹 
	 * 14：第三关boss 5发子弹
	 * 
	 * 
	 * 道具
	 * 
	 * 15：增加生命值 
	 * 16：添加子弹 
	 * 17：换威力弹(杀伤力为2) 
	 * 18：提升子弹速度 
	 * 19：清除画面所有(boss出现时，该道具无效)
	 * 
	 */
	public static final int PLAYER_TYPE_1 = 0;
	public static final int PLAYER_TYPE_2 = 1;
	public static final int PLAYER_TYPE_3 = 2;
	public static final int PLAYER_BULLET_1 = 3;
	public static final int PLAYER_BULLET_2 = 4;
	public static final int ENEMY_BULLET_1 = 5;
	public static final int ENEMY_BULLET_2 = 6;
	public static final int ENEMY_BULLET_3 = 7;
	public static final int ENEMY_TYPE_1 = 8;
	public static final int ENEMY_TYPE_2 = 9;
	public static final int ENEMY_TYPE_3 = 10;
	public static final int ENEMY_TYPE_4 = 11;
	public static final int ENEMY_TYPE_BOSS1 = 12;
	public static final int ENEMY_TYPE_BOSS2 = 13;
	public static final int ENEMY_TYPE_BOSS3 = 14;
	public static final int ADD_LIFE = 15;
	public static final int ADD_BULLET = 16;
	public static final int CHANGE_BULLET = 17;
	public static final int SPEED_UP = 18;
	public static final int CLEAR_ALL_ENEMY = 19;

	/**
	 * 子弹伤害 
	 * HARM_BULLET_1 伤害为1 
	 * HARM_BULLET_2 伤害为2
	 */
	public static final int HARM_BULLET_1 = 1;
	public static final int HARM_BULLET_2 = 2;

	/**
	 * 方向常量 0静止，1上, 2右上，3右，4右下，5下，6左下，7左，8左上
	 */
	public static final int DIR_STOP = 0;
	public static final int DIR_UP = 1;
	public static final int DIR_RIGHT_UP = 2;
	public static final int DIR_RIGHT = 3;
	public static final int DIR_RIGHT_DOWN = 4;
	public static final int DIR_DOWN = 5;
	public static final int DIR_LEFT_DOWN = 6;
	public static final int DIR_LEFT = 7;
	public static final int DIR_LEFT_UP = 8;

	/**
	 * 
	 * 关卡常量
	 * 
	 */
	public static final int LEVEL_1 = 0;
	public static final int LEVEL_2 = 1;
	public static final int LEVEL_3 = 2;

	/**
	 * intent 传值key
	 */
	public static final String EXTRA_KEY_SCORE = "score";

	/**
	 * 声音资源Map key 
	 * 1：我方发射子弹声音 
	 * 2：我方发子弹爆炸声音 
	 * 3：我方飞机爆炸声音 
	 * 4：BOSS爆炸声音 
	 * 5：获取到道具的声音
	 * 
	 */
	public static final int SOUND_KEY_SHOT = 1;
	public static final int SOUND_KEY_BULLET_EXPLODE = 2;
	public static final int SOUND_KEY_PLAYER_EXPLODE = 3;
	public static final int SOUND_KEY_BOSS_EXPLODE = 4;
	public static final int SOUND_KEY_GET_PROP = 5;

	/**
	 * 计时阀值 
	 * 
	 * ADD_BOSS_NUM:boss出现时间控制值
	 * 
	 *  REFLESH_TIME: gameview 页面刷新间隔 
	 */

	// 每关遇见BOSS
	public static final int ADD_BOSS_NUM = 1000;
	public static final int REFLESH_TIME = 10;
}
